package com.ht.power3d;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2009-1-13
 */
public class GraphInfo {
    String graphName;

    List<GraphLayerInfo> layers = new ArrayList<GraphLayerInfo>();

    public void addLayer(GraphLayerInfo layer) {
        layers.remove(layer);
        layers.add(layer);
    }

    public void removeLayer(GraphLayerInfo layer) {
        layers.remove(layer);
    }

    public String getGraphName() {
        return graphName;
    }

    public void setGraphName(String graphName) {
        this.graphName = graphName;
    }

    public List<GraphLayerInfo> getLayers() {
        return layers;
    }

    public void setLayers(List<GraphLayerInfo> layers) {
        this.layers = layers;
    }
}
